package com.zhw.mapper;

import com.github.pagehelper.Page;
import com.zhw.pojo.dto.ServeQueryDTO;
import com.zhw.pojo.entry.CustomerServe;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ServeMapper {
    Page<CustomerServe> page(ServeQueryDTO serveQueryDTO);


    void save(CustomerServe customerServe);

    @Select("select * from customer_serve where id=#{id} and status =#{status}")
    CustomerServe getServeByIdAndStatus(Integer id, Integer status);


    void update(CustomerServe customerServe);


}
